@import '../../styles/variables.scss';

.comment-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 0 38rpx;
  
  &-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60rpx;
    width: 100%;
  }
  
  &-user {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  
  &-avatar {
    width: 60rpx;
    height: 60rpx;
    border-radius: 100%;
    border: 2.8rpx solid $text-color;
  }
  
  &-username {
    margin-left: 20rpx;
    font-size: 28rpx;
    font-weight: 400;
    color: rgba(51, 51, 51, 1);
  }
  
  &-time {
    font-size: 24rpx;
    font-weight: 400;
    color: rgba(102, 102, 102, 1);
  }
  
  &-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: self-start;
    padding: 26rpx 0;
    width: 100%;
    
    text {
      font-size: 28rpx;
      font-weight: 400;
      color: $text-color;
    }
  }
  
  &-images {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10rpx;
    width: 100%;
    margin-bottom: 20rpx;
  }
  
  &-image {
    width: 120rpx;
    height: 120rpx;
    border-radius: 8rpx;
    overflow: hidden;
    
    image {
      width: 100%;
      height: 100%;
    }
  }
  
  &-replies {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12rpx;
    width: 100%;
    border-radius: 26rpx;
    background: rgba(245, 245, 245, 1);
    padding: 28rpx 24rpx;
    margin-bottom: 14rpx;
  }
  
  &-reply {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    
    &-name {
      font-size: 24rpx;
      font-weight: 400;
      color: rgba(255, 140, 59, 1);
    }
    &-symbol{
      font-size: 24rpx;
      font-weight: 400;
      color: rgba(102, 102, 102, 1);
    }
    
    &-to {
      font-size: 24rpx;
      font-weight: 400;
      color: rgba(255, 140, 59, 1);
      margin: 0 5rpx;
    }
    
    &-content {
      font-size: 24rpx;
      font-weight: 400;
      color: rgba(51, 51, 51, 1);
    }
  }
  
  &-view-all {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 14rpx;
    
    text {
      font-size: 20rpx;
      font-weight: 400;
      color: rgba(102, 102, 102, 1);
    }
  }
}